package cn.toma.core.result;

import java.io.Serializable;

/**
 * @author zqx
 * @version 1.0.0
 * @ClassName Result.java
 * @Description
 * @createTime 2019年08月28日 14:38:00
 */

public class Result implements Serializable
{

	private Integer code;
	private String msg;
	private boolean succeed;
	private Object data;


	public Result(CodeMsg codeMsg)
	{
		this.code = codeMsg.getCode();
		this.msg = codeMsg.getMsg();
	}

	public Result()
	{
	}

	public Integer getCode()
	{
		return code;
	}

	public void setCode(Integer code)
	{
		this.code = code;
	}

	public String getMsg()
	{
		return msg;
	}

	public void setMsg(String msg)
	{
		this.msg = msg;
	}

	public Object getData()
	{
		return data;
	}

	public void setData(Object data)
	{
		this.data = data;
	}

	public boolean isSucceed()
	{
		return succeed;
	}

	public void setSucceed(boolean succeed)
	{
		this.succeed = succeed;
	}
}
